https://api.affiliates.iugu.com/campaigns/{id}
Consulta uma campanha
Sem ações implementadas definidas
Request
Path variables |
|
---|---|
id
Required Type: string ID da campanha Ex: 58HKqRy8w2iHoKT91HCIeI |
Headers |
|
---|---|
workspace_id
Required Type: string Identificador do workspace Ex: 4fHECmQtLdROI4fDLWMiLd |
Response
200 |
||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
OK
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"id": "58HKqRy8w2iHoKT91HCIeI",
"name": "Campanha de Verão",
"workspace_id": "6AaVMPZBMTMweShgqdA7nR",
"event": "Pix",
"kind": 2,
"amount": 0.1,
"start_date": "2023-12-09",
"end_date": "2023-12-13",
"level_config": {
"level_1": 50,
"level_2": 50
},
"affiliates": "[\"5EufttluGZIPaQKN5PF4X4\", \"0cxvXAS3uPZut5z1mVKI20\"]",
"created_at": "2023-12-08T16:41:22.922Z",
"updated_at": "2023-12-08T16:44:02.572Z"
}
401 |
||||||
---|---|---|---|---|---|---|
Unauthorized
|
1
2
3
4
5
{
"status": "401",
"title": "JWT VALIDATION ERROR",
"detail": "Signature has expired"
}
404 |
||
---|---|---|
Not Found
|
1
2
3
{
"message": "Registro não encontrado."
}
500 |
||||||
---|---|---|---|---|---|---|
Internal Server Error
|
1
2
3
4
5
{
"status": "500",
"title": "Internal Server Error",
"detail": "Internal Error, try again later"
}